<template>
  <div class="home-nav">
    <!-- logo 区域 -->
    <img src="@/assets/tianmao.png" alt="">
    <!-- search 区域 -->
    <div class="top-search">
      <van-icon name="search" />
    </div>
    <!-- 分类按钮 -->
    <van-icon name="wap-nav" />
  </div>
</template>
 <style lang="scss" scoped>
.home-nav {
  position: fixed;
  width: 100%;
  top: 0;
  display: flex;
  height: 50px;
  align-items: center;
  padding: 0 12px;
  box-sizing: border-box;
  border-bottom: 1px solid #999;
  background-color: #fff;
  z-index: 1000;
  img {
    height: 30px
  }
  .top-search {
    width: 100%;
    margin: 0 10px;
    background-color: #f7f7f7;
    border-radius: 25px;
    .van-icon {
      font-size: 20px;
      margin-left: 12px;
    }
  }
}
</style>
